#include "app_message.h"
#include "log/log.h"
#include <stdlib.h>
int main()
{
    //模拟一个json字符串
    char *json = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char chars_buff[10];
    int len = app_message_jsonToChars(json, chars_buff, sizeof(chars_buff));
    log_debug("生成字符串长度： len:%d, chars:%s", len, chars_buff);
char *json2 = app_message_charsToJson(chars_buff, len);
    log_debug("生成json字符串：%s", json2);
    return 0;
}